import http from './http.interceptor.js'
const apiList = {
	//获取基本配置信息
	getConfig: (data) => {
		return http.request({
			url: '/system/Basic/config',
			method: 'POST',
			data
		})
	},
	//登录
	login: (data) => {
		return http.request({
			url: '/member/Login/login',
			method: 'POST',
			data
		})
	},
	//验证码登录
	code_login: (data) => {
		return http.request({
			url: '/member/Login/code_login',
			method: 'POST',
			data
		})
	},
	//注册
	register: (data) => {
		return http.request({
			url: '/member/Login/register',
			method: 'POST',
			data
		})
	},
	//验证码
	send_sms: (data) => {
		return http.request({
			url: '/system/Sms/send_sms',
			method: 'POST',
			data
		})
	},
	//找回密码
	forgetPass: (data) => {
		return http.request({
			url: '/member/Login/forgetPass',
			method: 'POST',
			data
		})
	},
	//当前用户信息
	userData: (data) => {
		return http.request({
			url: '/member/Member/userData',
			method: 'POST',
			data
		})
	},
	//修改用户信息
	changeInfo: (data) => {
		return http.request({
			url: '/member/Personal/changeInfo',
			method: 'POST',
			data
		})
	},
	//修改登录密码
	changePass: (data) => {
		return http.request({
			url: '/member/Personal/changePass',
			method: 'POST',
			data
		})
	},
	//绑定微信
	binding_wechat: (data) => {
		return http.request({
			url: '/member/Personal/binding_wechat',
			method: 'POST',
			data
		})
	},
	//绑定支付宝
	binding_alipay: (data) => {
		return http.request({
			url: '/member/Personal/binding_alipay',
			method: 'POST',
			data
		})
	},
	//绑定银行卡
	binding_bank_card: (data) => {
		return http.request({
			url: '/member/Personal/binding_bank_card',
			method: 'POST',
			data
		})
	},
	//钱包余额
	money_data: (data) => {
		return http.request({
			url: '/member/Personal/money_data',
			method: 'POST',
			data
		})
	},
	//钱包明细
	wallet_info: (data) => {
		return http.request({
			url: '/member/Personal/wallet_info',
			method: 'POST',
			data
		})
	},
	//余额申请提现
	apply_cash: (data) => {
		return http.request({
			url: '/member/Member/apply_cash',
			method: 'POST',
			data
		})
	},
	//邀请好友
	invite_friends: (data) => {
		return http.request({
			url: '/member/Member/invite_friends',
			method: 'POST',
			data
		})
	},
	//团队人数展示
	team: (data) => {
		return http.request({
			url: '/member/Team/team',
			method: 'POST',
			data
		})
	},
	//我的团队
	team_list: (data) => {
		return http.request({
			url: '/member/Team/team_list',
			method: 'POST',
			data
		})
	},
	
	
	
	
	// 商城
	// 轮播图
	index: (data) => {
		return http.request({
			url: '/shop/Index/index',
			method: 'POST',
			data
		})
	},
	//公告列表
	announce_list: (data) => {
		return http.request({
			url: '/system/Announce/announce_list',
			method: 'POST',
			data
		})
	},
	//公告详情
	announce_detail: (data) => {
		return http.request({
			url: '/system/Announce/announce_detail',
			method: 'POST',
			data
		})
	},
	//获取商品列表
	get_list: (data) => {
		return http.request({
			url: '/shop/Goods/get_list',
			method: 'POST',
			data
		})
	},
	//获取商品详情
	getGoodsDetail: (data) => {
		return http.request({
			url: '/shop/Goods/getGoodsDetail',
			method: 'POST',
			data
		})
	},
	//提交订单
	confirm_order: (data) => {
		return http.request({
			url: '/shop/Order/confirm_order',
			method: 'POST',
			data
		})
	},
	//支付宝支付
	pay: (data) => {
		return http.request({
			url: '/shop/Order/pay',
			method: 'POST',
			data
		})
	},
	//地址列表
	addlist: (data) => {
		return http.request({
			url: '/member/Address/get_list',
			method: 'POST',
			data
		})
	},
	//地址添加
	addAddress: (data) => {
		return http.request({
			url: '/member/Address/add',
			method: 'POST',
			data
		})
	},
	//地址编辑
	editAddress: (data) => {
		return http.request({
			url: '/member/Address/edit',
			method: 'POST',
			data
		})
	},
	//删除地址
	do_delete: (data) => {
		return http.request({
			url: '/member/Address/do_delete',
			method: 'POST',
			data
		})
	},
	//设置默认地址
	set_default: (data) => {
		return http.request({
			url: '/member/Address/set_default',
			method: 'POST',
			data
		})
	},
	//订单列表
	order_list: (data) => {
		return http.request({
			url: '/shop/Transport/order_list',
			method: 'POST',
			data
		})
	},
	//订单D
	order_detail: (data) => {
		return http.request({
			url: '/shop/Transport/order_detail',
			method: 'POST',
			data
		})
	},
	//确认收货
	take_delivery: (data) => {
		return http.request({
			url: '/shop/Transport/take_delivery',
			method: 'POST',
			data
		})
	},
	//删除订单
	cancel_order: (data) => {
		return http.request({
			url: '/shop/Transport/cancel_order',
			method: 'POST',
			data
		})
	},
}

export default apiList
